<?php

class SiteController extends Controller
{
    public function actionError()
    {
        echo 1;
        $this->layout = "nofoot";
        $error = Yii::app()->errorHandler->error;
        $this->render('error', compact('error'));
    }

    public function actionIndex()
    {

        $this->render('index');
    }

    public function actionTest()
    {
        $user_id = Yii::app()->request->getParam('user_id');
        $push_user_id = Yii::app()->request->getParam('push_user_id');
        $platform = Yii::app()->request->getParam('platform');
        $client_id = Yii::app()->request->getParam('client_id');
        $is_bind = UserToken::model()->bind($user_id, $push_user_id, $platform, $client_id);
    }

}

?>
